package main

import "fmt"

func main() {
	a := "abcd测"
	for i, v := range a {
		fmt.Printf("%d: %T %[2]v\n", i, v)
	}
	fmt.Println("程序结束了")

	for i := 0; i < len(a); i++ {
		fmt.Printf("%d: %T %[2]v\n", i, a[i])
	}
	fmt.Println("~~~~~~~~~~~")

	for i := 0; i < len(a); i++ {
		fmt.Printf("%d: %T %[2]x\n", i, a[i])
	}
}
